package org.wheel.plugins.toolkit.sql.segment;

import lombok.Data;

@Data
public class PageSegment {

    private final long pageNo;
    private final long pageSize;

    public PageSegment(long pageNo, long pageSize) {
        this.pageNo = pageNo;
        this.pageSize = pageSize;
    }

    public static PageSegment of(long pageNo, long pageSize) {
        return new PageSegment(pageNo, pageSize);
    }
}
